package com.lznb.cloud.service;

import com.lznb.cloud.controller.JsonResult;
import com.lznb.cloud.entity.NewsComment;

import java.util.Map;

/**
 * 
 * 
 * @author mzy
 * @email 1992lcg@163.com
 * @date ${datetime}
 */
public interface NewsCommentService {
	

    /**
    * 根据主键查询
    * @param commentId
    * @return
    */
		NewsComment getNewsComment(String commentId);

    /**
     * 保存
     */
    JsonResult save(NewsComment newsComment);

    /**
     * 修改
     */
    JsonResult update(NewsComment newsComment);

    /**
     * 删除
     */
    JsonResult delete(String commentId);

//    JsonResult getReadingnumber(String newsId );


    /**
     * 分页查询
     * @param pageIndex
     * @param size
     * @return
     */
    Map findByPage(Integer pageIndex, Integer size, NewsComment newsComment);
}
